package com.boardgame.gwt.data.space;

import java.util.ArrayList;
import java.util.List;

/**
 * 帐篷格子
 */
public class GwtSpaceTeepee extends GwtSpace {
    public GwtSpaceTeepee(){
        this.setSize(1);
        this.setBordercolor("green");
    }

    /**
     * 创建建筑格子
     * @return
     */
    public static List<GwtSpaceTeepee> createSpaceTent(){
        List<GwtSpaceTeepee> list = new ArrayList<>();
        //14行
        int[][] pos= {{
                6,6,6,6,6,6,7,7,7
        },{
                1,2,3,4,5,6,2,3,4
        },{
                3,0,0,0,0,0,0,0,0
        }
        ,{
                1,2,3,4,5,6,-1,-2,-3
        }
        };
        for (int i=0;i<pos[0].length;i++){
            GwtSpaceTeepee gwtSpaceTent=new GwtSpaceTeepee();
            gwtSpaceTent.setRow(pos[0][i]);
            gwtSpaceTent.setColumn(pos[1][i]);
            gwtSpaceTent.setOffset(pos[2][i]);
            gwtSpaceTent.setCost(pos[3][i]);
            list.add(gwtSpaceTent);
        }
        return list;
    }
}
